#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/7/28 11:00
# @Author  : wanghaoran
# @File    : urls.py
from django.urls import path
from django.conf.urls import url, include
from history_qa import views, views_base
from django.views.static import serve
from modelProject import settings


urlpatterns = [
    path('save/', views.insert_qa_data),
    path('get_history_dialogue/', views_base.get_history_qa_data),
    path('get_user_dialogue/', views_base.get_user_dialogue),
    path('update_history_qa_feedback/', views_base.update_history_qa_feedback),
    path('query/', views.query_question),
    path('save_batch/', views.insert_qa_data_batch),
    path('build_project/', views.build_project),
    path('rename_project/', views.rename_project),
    path('delete_project/', views.delete_project),
    path('delete_base/', views.delete_partition),
    path('delete_records/', views.delete_records),
    path('recover_data/', views.recover_data_from_mysql),
    # url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    url(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
    ]